import { get, post, del, put } from "../utils/request";

// 收货地址新增接口
export const reqAddAddress = (data) => post("/api/v1/addresses", data);

// 收获地址列表
export const reqAddressList = (params) => get("/api/v1/addresses", params);

// 获取删除地址列表
export const reqAddressDel = (id) => del("/api/v1/addresses/" + id);

//获取修改地址接口
export const reqAddressUpdata = (id, data) =>
	put("/api/v1/addresses/" + id, data);
